#pragma once
#include "MyDlg.h"
#include "DataDlg.h"
#include "afxwin.h"
// CDlgSysProductInfo dialog

class CDlgSysProductInfo : public CMyDlg, public IAddData
{
	DECLARE_DYNAMIC(CDlgSysProductInfo)

public:
	CDlgSysProductInfo(CWnd* pParent = NULL);   // standard constructor
	virtual ~CDlgSysProductInfo();

// Dialog Data
	enum { IDD = IDD_Sys_ProductInfo };

public:
//	CDlgSystemParam* m_SysParam;

public:
	void OnApply();
	virtual void AddData(emDataType DataType, CString& strData);
	virtual void DeleteData(emDataType DataType, CString& strData);
public:
	void SetModified(BOOL bModified);
	static  void ReadData(emDataType DataType, CComboBox *pCombo, CString strValue);
	void SetData(CString strData, CComboBox *pCombo);
	void SetData(emDataType DataType, CComboBox *pCombo);
protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()
public:
	virtual BOOL OnInitDialog();
	afx_msg void OnCbnSelchangeComboManuCompany();
	afx_msg void OnCbnSelchangeComboDelegateCompany();
	afx_msg void OnCbnSelchangeComboManuUnit();
	afx_msg void OnCbnSelchangeComboManuTeam();
	afx_msg void OnCbnSelchangeComboManuUser();
	afx_msg void OnCbnSelchangeComboWorkpieceName();
	afx_msg void OnCbnSelchangeComboSpecification();
	afx_msg void OnCbnSelchangeComboClass();
	afx_msg void OnCbnSelchangeComboModel();
	afx_msg void OnCbnSelchangeComboCraft();
	afx_msg void OnCbnSelchangeComboThickness();
	afx_msg void OnCbnSelchangeComMethod();
	afx_msg void OnCbnSelchangeComboLength();
	afx_msg void OnCbnSelchangeComboMaterial();
	afx_msg void OnCbnSelchangeComboCustom1();
	afx_msg void OnCbnSelchangeComCheckDevice();
	afx_msg void OnCbnSelchangeComboFocusSize();
	afx_msg void OnCbnSelchangeComboFocusDistance();
	afx_msg void OnCbnSelchangeComboMode();
	afx_msg void OnCbnSelchangeComboCustom2();
	afx_msg void OnBnClickedButtonBrowseManuCompany();
	afx_msg void OnBnClickedButtonBrowseDelegateCompany();
	afx_msg void OnBnClickedButtonBrowseManuUnit();
	afx_msg void OnBnClickedButtonBrowseMauTeam();
	afx_msg void OnBnClickedButtonBrowseManuUser();
	afx_msg void OnBnClickedButtonBrowseWorkpieceName();
	afx_msg void OnBnClickedButtonBrowseSpecification();
	afx_msg void OnBnClickedButtonBrowseClass();
	afx_msg void OnBnClickedButtonBrowseModel();
	afx_msg void OnBnClickedButtonBrowseCraft();
	afx_msg void OnBnClickedButtonBrowseThickness();
	afx_msg void OnBnClickedButtonBrowseMethod();
	afx_msg void OnBnClickedButtonBrowseLength();
	afx_msg void OnBnClickedButtonBrowseMaterial();
	afx_msg void OnBnClickedButtonBrowseCustom1();
	afx_msg void OnBnClickedButtonBrowseCheckDevice();
	afx_msg void OnBnClickedButtonBrowseFocusSize();
	afx_msg void OnBnClickedButtonBrowseFocusDistance();
	afx_msg void OnBnClickedButtonBrowseMode();
	afx_msg void OnBnClickedButtonBrowseCustom2();
	CComboBox m_cbManuCompany;
	CComboBox m_cbDeleGateCompany;
	CComboBox m_cbManuUint;
	CComboBox m_cbManuTeam;
	CComboBox m_cbManuUser;
	CComboBox m_cbWorkpieceName;
	CComboBox m_cbSpecification;
	CComboBox m_cbClass;
	CComboBox m_cbModel;
	CComboBox m_cbCraft;
	CComboBox m_cbThickness;
	CComboBox m_cbMethod;
	CComboBox m_cbLength;
	CComboBox m_cbMatrial;
	CComboBox m_cbCustom1;
	CComboBox m_cbCheckDevice;
	CComboBox m_cbFocusSize;
	CComboBox m_cbFocusDistance;
	CComboBox m_cbMode;
	CComboBox m_cbCustom2;
};
